package com.miage.kangourou.server.dao.impl;

import java.sql.Connection;
import java.sql.SQLException;
import java.util.List;

public abstract class GenericDao<T> {

	protected Connection connect = null;

	public GenericDao(Connection connect) {
		this.connect = connect;
	}

	public abstract boolean alreadyExist(T t) throws SQLException;

	public abstract void create(T t) throws SQLException;

	public abstract boolean delete(int id);

	public abstract List<T> findAll() throws SQLException;

	public abstract T findById(int id) throws SQLException;
}
